package com.neusoft.config;

import com.neusoft.utils.EmpInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author akemihomurasama
 * 配置拦截器
 */
@Configuration
public class SpringMVCConfig implements WebMvcConfigurer {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new EmpInterceptor())
                .addPathPatterns("/**").excludePathPatterns("/employee/userLogin/**");
    }
}
